﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NCP.Recruiting.Domain.Aggregates.Companies;
using System.Data.Entity.ModelConfiguration;
using NCP.Recruiting.Domain.Aggregates.Jobpositions;

namespace NCP.Recruiting.Repository.SqlServer.UnitOfWork.Mapping {
    class CompanyEntityTypeConfiguration : EntityTypeConfiguration<Company> {
        public CompanyEntityTypeConfiguration() {
            this.HasKey(c => c.Id);
            this.ToTable("ncp_company");

            //this.HasMany(c => c.Jobpositions);
            //this.HasMany(c => c.Contracts);


        }
    }
}
